import request from '@/utils/request'
//轮播列表
export function banner_list(page,limit,keyword) {
  return request({
    url: '/market/content/banner_list',
    method: 'post',
    data:{
      page,
      limit,
      keyword
    }
  })
}
//删除
export function banner_del(id) {
  return request({
    url: '/market/content/banner_del',
    method: 'post',
    data:{
      id
    }
  })
}
//添加
export function banner_add(title,img_src,sort) {
  return request({
    url: '/market/content/banner_add',
    method: 'post',
    data:{
      title,
      img_src,
      sort
    }
  })
}
//详情
export function banner_detail(id) {
  return request({
    url: '/market/content/banner_detail',
    method: 'post',
    data:{
      id
    }
  })
}
//修改
export function banner_edit(id,title,img_src,sort) {
  return request({
    url: '/market/content/banner_edit',
    method: 'post',
    data:{
      id,
      title,
      img_src,
      sort,
    }
  })
}
